package com.suiwei.base.common;

import lombok.Data;

import java.util.Objects;
/**
 * @author suiwei
 * @date 2023/5/2 21:59
 */
@Data
//基础类，供其他demo调用
public class Student {
    private String id;
    private String name;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Student student = (Student) o;
    return Objects.equals(id, student.id) && Objects.equals(name, student.name);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name);
  }

  public Student(String id, String name) {
    this.id = id;
    this.name = name;
  }

  public Student() {
  }
}
